package com.eastfair.auth.config;

import com.eastfair.aopcache.CacheConfigure;
import com.eastfair.aopcache.interceptor.AutoloadCacheProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author ligang
 * @date 2019/08/07
 */
//@Slf4j
@Configuration
@AutoConfigureAfter(CacheAutoConfigure.class)
public class AopCacheConfigure extends CacheConfigure {
//    @Autowired
//    AutoloadCacheProperties autoloadCacheProperties;
//    @Value("${ef.aopcache.isenabled}")
//    private boolean isCacheEnable;
//
//    public void setCacheEnable(boolean cacheEnable) {
//        autoloadCacheProperties.setEnable(cacheEnable);
//        isCacheEnable = cacheEnable;
//    }
}
